import request from '@/utils/request'

//
export function cylist(query) {
  return request({
    url: 'reception/user/list',
    method: 'get',
    params: query
  })
}
/* 教务课表信息 */

export function getSenateTeacher(query) {
  return request({
    url: 'reception/senate/getSenateTeacher',
    method: 'get',
    params: query
  })
}

/* 学生课表信息 */

export function getSenateSchedule(query) {
  return request({
    url: 'reception/senate/getSenateSchedule',
    method: 'get',
    params: query
  })
}
/* oa最新公告 */

export function getOaNotice(query) {
  return request({
    url: 'reception/oa/getOaNotice',
    method: 'get',
    params: query
  })
}
/* 图书 */
export function searchbookreutndetaildata(query) {
  return request({
    url: 'reception/books/searchbookreutndetaildata',
    method: 'get',
    params: query
  })
}

/* 学习成绩查询 */
export function getResults(query) {
  return request({
    url: 'reception/senate/getResults',
    method: 'get',
    params: query
  })
}
/*  空闲教师查询*/
export function getClassroom(query) {
  return request({
    url: 'reception/senate/getClassroom',
    method: 'get',
    params: query
  })
}
/* 图书搜索 */
export function book(query) {
  return request({
    url: 'reception/books/searchbookreutndetaildata',
    method: 'get',
    params: query
  })
}
/* 图书搜索分页 */
export function book_f(query) {
  return request({
    url: 'reception/books/searchbookreutndetaildataPaging',
    method: 'get',
    params: query
  })
}
/* 监考查询 */
export function getProctor(query) {
  return request({
    url: 'reception/senate/getProctor',
    method: 'get',
    params: query
  })
}
/* 获取工资查询 */

export function humanResources(query) {
  return request({
    url: `reception/humanResources/${query.ofDate1}`,
	 //url: 'reception/humanResources',
    method: 'get',
    //params: query
  })
}
/* oa首页公告 */

export function getInfo(query) {
  return request({
	 url: 'reception/oa/getInfo',
    method: 'get',
    params: query
  })
}
/* 学校发文 */
export function getPost(query) {
  return request({
	 url: 'reception/oa/getPost',
    method: 'get',
    params: query
  })
}

/* 消息列表翻页 */
// export function getPost(query) {
//   return request({
// 	 url: 'reception/oa/getPost',
//     method: 'get',
//     params: query
//   })
// }
/* 学校发文详情 */
export function getOa(id) {
  return request({
	 url: 'reception/oa/getOa?fdId='+id,
    method: 'get',
  })
}